package com.alibaba.csp.sentinel.demo.spring.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.BlockExceptionHandler;
import com.alibaba.csp.sentinel.slots.block.BlockException;

 
public class BlockExceptionHandlerImpl implements BlockExceptionHandler {

	@Override
	public void handle(HttpServletRequest request, HttpServletResponse response, BlockException e) throws Exception {
		// TODO Auto-generated method stub
		response.getWriter().append(" BlockExceptionHandlerImpl be invoked by:"+e.getRule());
		
	}

	
}
